<template>
  <div class="header">
    <nav>
      <a href="">
        <img class="logo" src="../../assets/img/shouye/shouye/aladeng.png" alt="">
      </a>
      <router-link :to="{name: 'sousuo'}">
        <div>
          <img src="../../assets/img/shouye/shouye/sousuo.png"/>
          <input type="text" placeholder="输入商品关键词" @click="iptClick">
        </div>
      </router-link>
      <router-link :to="{name: 'xiaoxi'}">
        <img class="message" src="../../assets/img/shouye/shouye/右上角消息.png" alt="">
      </router-link>
    </nav>
  </div>
</template>
<script scoped>
  export default {
    methods: {
      iptClick () {

      }
    }
  }
</script>
<style>
  .header {
    height: 1.6rem;
  }
  .header nav{
    background-color: #e53e42;
    /*text-align: center;*/
    line-height: 2rem;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
  }
  .header .logo {
    padding:0.7rem  0 0 0.4rem;
    width: 2.5rem;
  }
  .message{
    width: 0.8rem;
    padding: 0.7rem 0 0 1rem;
  }
  .header nav a {
    float: left;
  }
  .header input {
    float: left;
    width: 8rem;
    height: 1rem;
    background-color: #ffffff;
    border: 1px solid #fff;
    border-radius: 0.3rem;
    margin:0.5rem 0 0 1rem;
    padding-left: 1rem;
  }
  .header input::placeholder{
    font-size: 0.6rem;
    color: #e83d41;
  }
  .header nav div{
    position: relative;
  }
  .header nav div img {
    width: 0.7rem;
    height: 0.7rem;
    position: absolute;
    top: 0.7rem;
    left: 1.2rem;
  }

</style>
